package org.example.PoJo;

import java.util.Arrays;

public class User {
    public  int userID;
    public  String username;
    public  String password;
    public  byte[] avatar;
    public int getUserID() {
        return userID;
    }
    public void setUserID(int userID) {
        this.userID = userID;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public byte[] getAvatar() {
        return avatar;
    }

    public void setAvatar(byte[] avatar) {
        this.avatar = avatar;
    }

    public User(int userID, String username, String password, byte[] photo) {
        this.userID = userID;
        this.username = username;
        this.password = password;
        this.avatar = photo;
    }
    public User() {
    }
    @Override
    public String toString() {
        return "User{" +
                "userID=" + userID +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", photo=" + Arrays.toString(avatar) +
                '}';
    }
}